package com.yn.xgame;

import com.yn.xgame.util.Utils;

/**
 * MqTags
 * Created by wangboo on 17/7/13.
 */
public class MqTags {

    public static final String bean_type_map_str = "map";
    public static final byte[] bean_type_map = bean_type_map_str.getBytes(Utils.charset);


    // tag 类型，其他服务器需要网关转发给用户, userProp中带 sid(会话id)
    public static final String TO_CLIENT = "tc";
    // tag 类型，中间件使用bean通信，userProp中带class(json序列化用的class), msgId(消息类型), from(来自哪个topic)
    public static final String BEAN = "bean";
    // tag 类型，客户端请求网关，由网关转发至目标服务器, userProp中带 sid(会话id), gate(来自哪个gateTopic)
    public static final String C2G_REDIRECT = "cgr";

}
